package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;

import java.util.Collection;
import java.util.List;

public interface IPermissionService {

    List<Permission> selectAll();

    /**
     * 加载权限
     */
    void role();

    /**
     * 回显角色的权限
     * @param id
     * @return
     */
    List<Permission> selectByRoleId(Long id);

    void reload();


    Collection<String> selectResourceByEmpId(Long empId);
}
